package com.pan.dao;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.sql.Timestamp;

// 用户的实体类
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class User {
    private int id;
    private String userName; // 用户名
    private String password; // 密码
    private String email; // 邮箱
    private String filePath; // 文件存储路径
    private String token; // token
    private Timestamp tokenExpiry; // token 时效

    // 这是给 Register 用的
    public User(String userName, String password, String email, String filePath) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.filePath = filePath;
    }
}
